﻿#include "mainwindow.h"

#include <QApplication>

int main(int argc, char *argv[])
{
    QApplication::setAttribute(Qt::AA_UseOpenGLES,true);
    //QGuiApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
    //qputenv("QT_ENABLE_HIGHDPI_SCALING", "0.5");
    //QGuiApplication:setHighDpiScaleFactorRoundingPolicy(Qt::HighDpiScaleFactorRoundingPolicy::PassThrough);
	QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling, true);
    QCoreApplication::setAttribute(Qt::AA_UseHighDpiPixmaps, true);
    QApplication a(argc, argv);
    MainWindow w;
    w.show();
    return a.exec();
}
